//Page 445 

#include <fstream>
#include <string>
#include <vector>
#include <iostream>
#include <iterator>

using namespace std ;

int main ( )
{
	ifstream in("Reversible.cpp") ;
	string line ;
	vector<string> lines;

	while ( getline(in, line) )
		lines.push_back(line) ;
	
	for ( vector<string>::reverse_iterator r = lines.rbegin(); 
		  r != lines.rend(); r++)
		cout<< *r << endl ;

	return 0 ;
}
